package com.mall.model.entity.Mms;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

 /**
 * 优惠卷
 * @author : cck
 * @date : 2025-10-10
 */
 
@Schema(name = "优惠卷",description = "")
@TableName("mms_coupon")
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class MmsCoupon implements Serializable{
    private static final long serialVersionUID = 1L;
    /** 主键id */
    @Schema(name = "主键id",description = "")
    @TableId
    private Long id;
    /** 优惠卷名称 */
    @Schema(name = "优惠卷名称",description = "")
    private String name;
    /** 优惠卷类型 */
    @Schema(name = "优惠卷类型",description = "")
    private Integer type;
    /** 折扣金额/比例 */
    @Schema(name = "折扣金额/比例",description = "")
    private Integer discount;
    /** 使用门槛 */
    @Schema(name = "使用门槛",description = "")
    private Double couponRule;
    /** 总发行量 */
    @Schema(name = "总发行量",description = "")
    private Integer totalQuantity;
    /** 已发行数量 */
    @Schema(name = "已发行数量",description = "")
    private Integer issuedQuantity;
    /** 过期时间 */
    @Schema(name = "过期时间",description = "")
    private Date expireTime;
}